from django.urls import path
from . import views

urlpatterns = [
	path('', views.apiOverview, name="api-overview"),
	path('transactionrecord-list/<str:fid>/<str:lastdays>/<str:reserve>/', views.fundTransactionRecordList, name="transactionrecord-list"),
	path('stocktransactionrecord-list/<str:sid>/<str:items>/', views.stockTransactionRecordList, name="stocktransactionrecord-list"),
	path('fundtransactionrecord-create/', views.fundtransactionrecordCreate, name="fundtransactionrecord-create"),
	path('fundtransactionrecord-delete/<str:pk>/', views.fundtransactionrecordDelete, name="fundtransactionrecord-delete"),
	path('fundtransactionrecord-sync/<str:pk>/', views.fundtransactionrecordSync, name="fundtransactionrecord-sync"),
	path('stocktransactionrecord-sync/<str:pk>/', views.stockTransactionRecordSync, name="stocktransactionrecord-sync"),
	path('stocktransactionrecord-sma/<str:sid>/', views.getStockSmaValues, name="stocktransactionrecord-sma"),
	path('fundrecord-create/', views.fundrecordCreate, name='fundrecord-create'),
	path('fundrecords/<str:start_fid>/<str:end_fid>/', views.fundRecordList, name='fundrecords'),
	path('fundrecords-search/<str:s_id>/', views.searchRecord, name="searchrecords-search"),
	path('wx_login/', views.wxLogin, name='wx_login'),
	path('auth_login/', views.authLogin, name='auth_login'),
	# stock
	path('get-sh-company/', views.getShCompany, name='get-sh-company'),
	path('get-sz-company/', views.getSzCompany, name='get-sz-company')
]
